;(function () {
    let myChart = echarts.init(document.querySelector(".box-m3"));
    let option = {
        
        series: [
          {
            type: 'gauge',
            progress: {
              show: true,
              width: 18
            },
            axisLine: {
              lineStyle: {
                width: 18
              }
            },
            axisTick: {
              show: false
            },
            splitLine: {
              length: 5,
              lineStyle: {
                width: 2,
                color: '#999'
              }
            },
            axisLabel: {
              distance: 25,
              color: '#999',
              fontSize: 10
            },
            anchor: {
              show: true,
              showAbove: true,
              size: 15,
              itemStyle: {
                borderWidth: 10
              }
            },
            title: {
              show: false
            },
            detail: {
              valueAnimation: true,
              fontSize: 30,
              offsetCenter: [0, '50%']
            },
            data: [
              {
                value: 50
              }
            ]
          }
        ],
        title: {
            text: "作业完成量",
            left: "center",
            top: "0",
            textStyle: {
              fontSize: 25,
              color:'#ccc'
            }},
      };
      
    myChart.setOption(option);
    //缩放改变大小
    window.addEventListener("resize", () => {
      myChart.resize();
    });
  })();
  